import Vue from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'

//全部引入，引入vantui和样式表
// import Vant from 'vant'
// Vue.use(Vant)
import 'vant/lib/index.css'

// 按需引入
import '@/plugins/vant'
//全局样式
import '@/style/index.scss'

import 'lib-flexible' //淘宝适配 meta
import { http } from "@/api"
Vue.prototype.$ajax = http

Vue.config.productionTip = false

import '@/utils/global'

import { reg } from "@/utils/validate"
Vue.prototype.$reg = reg;


import '@/utils/mock.js'

import axios from 'axios'
Vue.prototype.$axios = axios

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
